widget: Remove gtk_widget_get_requisition
authorTimm Bäder <mail@baedert.org>
Tue, 4 Oct 2016 16:27:16 +0000 (18:27 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:17:21 +0000 (18:17 +0200)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkwidget.c
gtk/gtkwidget.h

index ee967c99adeb97d25cf8ef04682653042fdf17b7..e3e9f107353ceb83ccde0dff7704d35e9f054d7d 100644 (file)
@@ -5247,7 +5247,6 @@ gtk_widget_set_realized
 gtk_widget_get_realized
 gtk_widget_set_mapped
 gtk_widget_get_mapped
-gtk_widget_get_requisition
 gtk_widget_device_is_shadowed
 gtk_widget_get_modifier_mask
 gtk_widget_insert_action_group
index 53064cd2eb7119cb8843a73e07a2e3ae264bdc6e..431b62071efba1a5ff57e147361e7573f2c640f7 100644 (file)
@@ -15082,36 +15082,6 @@ gtk_widget_get_allocated_baseline (GtkWidget *widget)
   return widget->priv->allocated_baseline;
 }
 
-/**
- * gtk_widget_get_requisition:
- * @widget: a #GtkWidget
- * @requisition: (out): a pointer to a #GtkRequisition to copy to
- *
- * Retrieves the widget’s requisition.
- *
- * This function should only be used by widget implementations in
- * order to figure whether the widget’s requisition has actually
- * changed after some internal state change (so that they can call
- * gtk_widget_queue_resize() instead of gtk_widget_queue_draw()).
- *
- * Normally, gtk_widget_size_request() should be used.
- *
- * Since: 2.20
- *
- * Deprecated: 3.0: The #GtkRequisition cache on the widget was
- * removed, If you need to cache sizes across requests and allocations,
- * add an explicit cache to the widget in question instead.
- */
-void
-gtk_widget_get_requisition (GtkWidget      *widget,
-                            GtkRequisition *requisition)
-{
-  g_return_if_fail (GTK_IS_WIDGET (widget));
-  g_return_if_fail (requisition != NULL);
-
-  gtk_widget_get_preferred_size (widget, requisition, NULL);
-}
-
 /**
  * gtk_widget_set_window:
  * @widget: a #GtkWidget
index 6d6f0a864000887bf9d5a085c5517a3e51fad7f3..b6c2a9373b4bc88abdcc580cc333c87e1fbb0056 100644 (file)
@@ -921,11 +921,6 @@ GDK_AVAILABLE_IN_3_14
 void                  gtk_widget_get_clip               (GtkWidget     *widget,
                                                          GtkAllocation *clip);
 
-GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_width & gtk_widget_get_preferred_height)
-
-void                  gtk_widget_get_requisition        (GtkWidget     *widget,
-                                                         GtkRequisition *requisition);
-
 GDK_AVAILABLE_IN_ALL
 gboolean   gtk_widget_child_focus         (GtkWidget           *widget,
                                            GtkDirectionType     direction);